package com.ebupt.migu.music.common.api;

import lombok.Getter;
import lombok.Setter;

/**
 * Created by Intellij IDEA.
 * User:  liuyangyang@cd.ebupt.com
 * Date:  2019/10/23
 */
@Getter
@Setter
public class RestResponse<T> extends BaseVo {
    private int rspcode;
    private String rspdesc;
    private T data;

    @Override
    public String toString(){
        final StringBuilder sb = new StringBuilder("RestResponse{");
        sb.append("rspcode=").append(rspcode);
        sb.append(", rspdesc='").append(rspdesc).append('\'');
        sb.append(", data=").append(data);
        sb.append('}');
        return sb.toString();
    }
}
